package com.example.lianjuan.Base;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewbinding.ViewBinding;

import com.tamsiree.rxkit.RxTool;

public abstract class BaseActivity<VB extends ViewBinding> extends AppCompatActivity {
    public VB binding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //        //======================================
        ////应用变灰设置
//        ColorMatrix matrix = new ColorMatrix();
//        //设置饱和度为0
//        matrix.setSaturation(0);
//        Paint paint = new Paint();
//        paint.setColorFilter(new ColorMatrixColorFilter(matrix));
//        //获取整个应用窗口
//        View contentContainer = getWindow().getDecorView();
//        contentContainer.setLayerType(View.LAYER_TYPE_SOFTWARE, paint);
//        //======================================
        Presenter();
        RxTool.init(this);
    }

    protected void initListener() {

    }

    protected abstract void initView();

    protected void Presenter() {
    }
}
